$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;

body {
  position: relative;
  min-height: 100vh;
}

.loading {
  width: 100%;
  ;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  background-color: #eee;
  transition: all 600ms;

  .progress-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 15;
    font-size: 50px;
    font-weight: bold;
  }

  .dLeft {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100vh;
    background-color: #000;
    animation: widthAnimate 1s forwards;
  }

  .ft {
    position: absolute;
    left: 0;
    bottom: 5%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;

    .slogan {
      img {
        filter: invert(100%);
      }
    }

    .st {
      color: white;
      font-size: $fontSize_24;
      text-transform: uppercase;
      margin: 0 2vw;
    }
  }

  @keyframes widthAnimate {
    from {
      width: 0;
    }

    to {
      width: 100vw;
    }
  }
}

.dialog{
  width: 100%;
  position: fixed;
  left: 0;
  top:0;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  z-index: 10;
  .content{
    width: 30vw;
    background-color: white;
    .t1{
      text-align: center;
      font-size: $fontSize_64;
      margin-top: 3vw;
    }
    .des{
      width: 70%;
      margin: 1vw auto 3vw auto;
      color:rgba(0, 0, 0, 0.4);
      text-align: center;
    }
    .all_btn{
      display: flex;
      justify-content: space-between;
      .abtn{
        width: 50%;
        text-align: center;
        padding: 1vw 0;
        background-color: #000;
        color:white;
        font-size: $fontSize_32;
        cursor: pointer;
      }
      .abtn:first-child{
        background: #F5F5F5;
        color:rgba(0, 0, 0, 1);
      }
    }
  }
}

.home {
  position: relative;
  width: 100%;
  display: none;

  .section {
    width: 100%;
    height: 100vh;
    overflow: hidden;

    .first_dom {
      display: flex;
      justify-content: space-between;
      width: 90vw;
      margin: 5.9vw 2vw 0 8vw;
      opacity: 0;
      transition: all 1s;
      position: relative;
      z-index: 1000;

      &::before {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 1px;
        background-color: #000;
        z-index: 100;
      }

      .l {
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid #000;
        align-items: center;
        transition: all 600ms;
        width: 45%;
        position: relative;
        z-index: 1000;

        .txt {
          width: 85%;
          margin-bottom: 6vw;
          .t1 {
            font-size: $fontSize_90;
            padding-bottom: 4vw;
            position: relative;
            z-index: 50;
            img{
              max-width: 80%;
            }
            p {
              font-family: 'Rod Sans';
              opacity: 0;
            }

            .svg {
              position: absolute;
              right: 10vw;
              bottom: 1vw;
              opacity: 0;
              transition: all 1s;
              animation-delay: 500ms;
            }
          }

          .t3 {
            font-size: $fontSize_24;
            // font-family: 'HYQiHeiY1-75W';
            font-weight: bold;
            opacity: 0;
            transition: all 1s;
            position: relative;
            z-index: 50;
            animation-delay: 200ms;
          }
        }
      }

      .pros {
        width: 55%;
        position: relative;
        z-index: 10;
        opacity: 0;
        transition: all 1s;
        animation-delay: 400ms;

        .btn {
          position: absolute;
          left: calc(50% + 5vw);
          top: 4vw;
          transform: translateX(-50%);
          background-color: #E49F41;
          height: 5vw;
          width: 5vw;
          border-radius: 50%;
          color: white;
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 10;
          cursor: pointer;
          font-size: $fontSize_24;
          transition: all 600ms;
          border: 1px solid #000;
        }

        &::after {
          content: '';
          display: block;
          position: absolute;
          left: calc(50% + 5vw);
          top: 0;
          width: 1px;
          height: 100%;
          background-color: #000;
          transition: all 600ms;
        }

        .swiper-container {
          transform: scale(1);

          .info {
            height: calc(100vh - 5.9vw);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 600ms;

            a {
              text-align: center;
              transform: translateX(2vw);

              img {
                max-width: 100%;
                object-fit: contain;
              }
            }
          }

          .swiper-slide-next {
            .info {
              transform: scale(.8);

              a {
                transform: translateX(5vw);
              }
            }
          }
        }
      }

      .fills {
        position: absolute;
        right: calc(24.75% - 5vw);
        height: 5vw;
        width: 5vw;
        border-radius: 50%;
        top: 4vw;

        .fill {
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          border-radius: 50%;
          transition: all 2s;
          display: none;
        }
      }
    }

    .second_dom {
      width: 100%;
      height: 100vh;

      .d1 {
        margin: 6vw 0 4vw 13vw;
        position: relative;

        .t1 {
          font-weight: bold;
          font-size: $fontSize_70;
          opacity: 0;
          transition: all 600ms;
        }

        .t2 {
          // font-family: 'HYQiHeiY1-65W';
          font-size: $fontSize_40;
          margin: 0 0 2vw 0;
          opacity: 0;
          transition: all 600ms;
          transition-delay: 200ms;
        }

        .t3 {
          // font-family: 'HYQiHeiY1-75W';
          font-size: $fontSize_22;
          opacity: 0;
          transition: all 600ms;
        }

        .line {
          position: absolute;
          left: 14vw;
          top: 2vw;

          svg {
            path {
              fill: none;
              stroke: #FF0000;
              stroke-width: 3px;
              stroke-dasharray: 2175;
              stroke-dashoffset: 2175;
            }
          }
        }
      }


      .products {
        width: 100%;
        .scroll-container {
          width: 100%;
          overflow: hidden;

          .animate_box {
            display: flex;
            width: max-content;
            animation: ani-loop 20s linear infinite;
            animation-delay: 1500ms;
            display: none;
            .flex-xb {
              display: flex;
              flex-wrap: wrap;
              justify-content: space-between;

              .info {
                width: 20vw;

                a {
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  position: relative;
                  background-color: rgba(230, 230, 230, 1);
                  border-radius: 30px;
                  padding: 2.5vw 0;
                  margin: 0 2.917vw 2.917vw 0;

                  .tag {
                    position: absolute;
                    right: 14px;
                    top:16px;
                    color: white;
                    font-size: .7vw;
                    padding: 8px 5px;
                    border-radius: 5px;
                    display: flex;
                    align-items: center;

                    // p{
                    //   font-family: 'FranklinGothic-Heavy';
                    // }
                    img {
                      width: 20px;
                      margin-left: 5px;
                      height: auto;
                    }
                  }

                  .color1 {
                    background-color: #386658;
                  }

                  .color2 {
                    background-color: #E49F41;
                  }

                  .color3 {
                    background-color: #010101;
                  }

                  .color4 {
                    background-color: #E2D555;
                  }

                  img {
                    max-width: 100%;
                    height: 40vh;
                  }
                }
              }
            }

            @keyframes ani-loop {
              0% {
                transform: translateX(0);
              }

              100% {
                transform: translateX(-50%);
              }
            }
          }
        }
      }
    }

    .video_dom {
      width: 100%;
      height: 100vh;
      position: relative;

      video {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        transform: scale(.6);
        transition: all 2s;
        border-radius: 20px;
        transition-delay: 500ms;
      }

      .play {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        cursor: pointer;
      }
    }
  }

  .fp-completely {
    .first_dom {
      opacity: 1;

      .l {
        .txt {
          .t1 {
            p {
              opacity: 1;
            }

            .svg {
              opacity: 1;
            }
          }

          .t3 {
            transition-delay: 1s;
            opacity: 1;
          }
        }
      }

      .pros {
        transition-delay: 1s;
        opacity: 1;
      }
    }

    .second_dom {
      .d1 {

        .t1,
        .t2,
        .t3 {
          opacity: 1;
        }

        .line {
          svg {
            path {
              stroke-dashoffset: 0;
              transition: all 1600ms;
              transition-delay: 600ms;
              // fill: #FF0000;
            }
          }
        }
      }

      .products {
        .scroll-container{
          .animate_box{
            display: flex;
          }
        }
      }
    }
  }

  @media screen and (max-width: 1440px) {
    .section {
      .first_dom {
        .l {
          .txt {
            .t1 {
              .svg {
                bottom: 0;
              }
            }
          }
        }

        .pros {
          .swiper-container {
            .info {
              a {
                img {
                  max-height: 70vh;
                }
              }
            }
          }
        }
      }

      .second_dom {
        .d1 {
          margin-top: 8vw;
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    // .section,
    // .fp-tableCell {
    //   height: auto !important;
    // }
   .section{
     .first_dom{
      flex-direction: column;
      width:98vw;
      margin: 60px auto 30px auto;
      &::before{
        display: none;
      }
      .l{
        width: 100%;
        border-right: none;
        .txt{
          width: 100%;
          text-align: center;
          .t1{
            font-size: 32px;
            .svg{
              right:20vw;
              bottom:-6vw;
              svg{
                width: 80px;
              }
            }
          }
          .t3{
            width: 80%;
            margin: 0 auto;
            font-size: 12px;
            line-height: 1.4;
          }
        }
      }
      .pros{
        width: 100%;
        margin-top: 30px;
        border-top: 1px solid #000;
        border-right: 1px solid #000;
        border-bottom: 1px solid #000;
        .swiper-container{
          .info{
            height: 380px;
            a{
              img{
                max-height: 300px;
              }
            }
          }
        }
        .btn{
          font-size: 14px;
          width: 60px;
          height: 60px;
          top:35%;
        }
      }
      .fills{
        width: 60px;
        height: 60px;
        top:58.5%;
        right:36.5%;
      }
     }
     .second_dom{
      .d1{
        margin-top: 70px;
        margin-bottom: 60px;
        .t1{
          font-size: 32px;
        }
        .t2{
          font-size: 18px;
        }
        .t3{
          font-size: 16px;
        }
        .line{
          top:2vw;
          svg{
            width: 100%;
          }
        }
      }
      .products{
        .scroll-container{
          .animate_box{
            .flex-xb{
              .info{
                width: 60vw;
                a{
                  padding: 30px 0;
                  border-radius: 15px;
                  .tag{
                    font-size: 12px;
                    padding: 8px 5px;
                    top:10px;
                    right:10px;
                    transform-origin: top right;
                    transform: scale(.8);
                    img{
                      height: auto;
                    }
                  }
                  img{
                   height:280px;
                   max-height: inherit;
                  }
                }
              }
            }
          }
        }
      }
     }
     .video_dom{
       .play{
        img{
          width: 50px;
        }
       }
     }
   }
  }
}
@media screen and (max-width: 1024px) {
  .loading{
    .ft{
      .st{
        font-size: 14px;
      }
    }
  }
  .dialog{
    .content{
      width: 80%;
      .t1{
        font-size: 32px;
        margin-top: 30px;
      }
      .des{
        font-size: 16px;
        width: 90%;
        margin: 15px  auto 30px auto;
        line-height: 1.4;
      }
      .all_btn{
        .abtn{
          font-size: 16px;
          padding: 15px 0;
        }
      }
    }
  }
}